package model.altarica_fields;

import math.Expression;

public class UpdateExpression {

    private Var var;
    private Expression expression;

    public UpdateExpression(Var var, Expression expression) {
        this.var = var;
        this.expression = expression;
    }

    @Override
    public String toString() {

        return var.getId() + " := " + expression;
    }

    public Var getVar() {

        return var;
    }

    public void setVar(Var var) {

        this.var = var;
    }

    public Expression getExpression() {

        return this.expression;
    }
}
